Skip to content

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented May 14, 2025

Fixes #1340
Fixes #1250

This PR is intended to improve syntax highlighting for CSS. Currently things like @plugin are not always handled right, declarations inside @theme may be incorrectly tokenized — or even not at all, etc…

Proper nesting support will come in a separate PR

The best way to test this is to:

  • Clone the repo
  • Run the extension in the dev host
  • New file in the Tailwind CSS language mode
  • Toss in a bunch of CSS (can look at the tests for lots of stuff)

@thecrypticace thecrypticace changed the title wip: Improve syntax highlighting of Tailwind CSS language wip: Improve CSS syntax highlighting May 14, 2025
@thecrypticace thecrypticace force-pushed the feat/improve-syntax-highlighting branch 6 times, most recently from ab345de to e8e2508 Compare May 26, 2025 22:52
@thecrypticace thecrypticace force-pushed the feat/improve-syntax-highlighting branch from 351cb87 to 1b46027 Compare May 27, 2025 00:11
@thecrypticace thecrypticace changed the title wip: Improve CSS syntax highlighting Improve CSS syntax highlighting May 27, 2025
@thecrypticace thecrypticace marked this pull request as ready for review May 27, 2025 00:15
@thecrypticace thecrypticace merged commit beb6d43 into main May 28, 2025
12 checks passed
@thecrypticace thecrypticace deleted the feat/improve-syntax-highlighting branch May 28, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants